Removing an AWT Context
When you have finished execution of an applet and no longer need the AWT context, you can dispose of it using theJMDisposeAWTContext
function (page 63). However, you should have already removed any applets from the context before callingJMDisposeAWTContext
. You can reuse an AWT context by disposing of an instantiated applet and then instantiating a new one in the same context.